package com.thb.pay.api.payment.fallback;

import com.thb.pay.api.payment.PayInterfaceTypeServiceApi;
import com.thb.pay.api.payment.vo.req.PayInterfaceTypePageReq;
import com.thb.pay.api.payment.vo.req.PayInterfaceTypeReq;
import com.thb.pay.api.payment.vo.resp.PayInterfaceTypeVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

@Slf4j
@Component
public class PayInterfaceTypeServiceApiFallbackFactory implements FallbackFactory<PayInterfaceTypeServiceApi> {


    @Override
    public PayInterfaceTypeServiceApi create(Throwable throwable) {
        return new PayInterfaceTypeServiceApi() {
            @Override
            public PageResult<PayInterfaceTypeVo> findPage(PayInterfaceTypePageReq pageReq) {
                return null;
            }

            @Override
            public List<PayInterfaceTypeVo> findAllList() {
                return null;
            }

            @Override
            public List<PayInterfaceTypeVo> findListByIds(List<Long> ids) {
                return null;
            }

            @Override
            public void add(PayInterfaceTypeReq payInterfaceTypeReq) {

            }

            @Override
            public void update(PayInterfaceTypeReq payInterfaceTypeReq) {

            }

            @Override
            public PayInterfaceTypeVo getByCode(String code) {
                return null;
            }

            @Override
            public PayInterfaceTypeVo getById(Long id) {
                return null;
            }

            @Override
            public void deleteBatchIds(List<Long> ids) {

            }
        };
    }
}